<?php
class Accountmanager_Data_Updatecomment implements Accountmanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "UPDATE page_comments SET page_name='".$variables['post']['page_name']."', comment_text='".$variables['post']['comment_text']."', status_name='Nieaktywny' WHERE id='".$variables['post']['id']."' AND username='".$variables['session']['username']."';";
        return $this->core_controller_dataoperation->main($variables);
    }
}
